package io.github.shenbinglife.springboot2.layui;

import io.github.shenbinglife.springboot2.layui.common.jpa.BaseRepositoryImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EntityScan("io.github.shenbinglife.**.entity")
@EnableJpaAuditing
@SpringBootApplication
@EnableJpaRepositories(basePackages = {"io.github.shenbinglife.**.dao"},
        repositoryBaseClass = BaseRepositoryImpl.class
)
@EnableTransactionManagement
public class Springboot2DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(Springboot2DemoApplication.class, args);
    }


}
